package sjms.construction.flyweight;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2020/6/3 23:10
 */
public class Test {

    public static void main(String[] args) {
        Circle red = (Circle)FlyweightFactory.getShape("red");
        red.setX(1);
        red.draw();

        Circle blue = (Circle)FlyweightFactory.getShape("blue");
        blue.setX(10);
        blue.draw();
    }
}
